<?php


namespace app\common\service;


interface Pay
{
    /**
     * 下单
     *
     * @Author: Li Guo Xin <guoxinlee129@gmail.com>
     * @Date: 2020/5/7
     * @Time: 12:55
     */
    public function placeOrder();

    /**
     * 支付
     * - 成功之后需要插入一个查询支付状态的队列
     *
     * @Author: Li Guo Xin <guoxinlee129@gmail.com>
     * @Date: 2020/5/7
     * @Time: 12:55
     */
    public function pay();

    /**
     * 回调
     *
     * @Author: Li Guo Xin <guoxinlee129@gmail.com>
     * @Date: 2020/5/7
     * @Time: 12:55
     */
    public function callback();

    /**
     * 获取订单状态
     *
     * @Author: Li Guo Xin <guoxinlee129@gmail.com>
     * @Date: 2020/5/7
     * @Time: 13:28
     */
    public function getOrderStatus();

    /**
     * 订单退款
     *
     * @Author: Li Guo Xin <guoxinlee129@gmail.com>
     * @Date: 2020/5/7
     * @Time: 13:28
     */
    public function orderRefund();
}